﻿namespace SmartAgricultureService.Models
{
    public sealed class PagingResult<T>(int index, int total, List<T> data, int size)
    {
        public int PageSize { get; set; } = size;
        public int TotalPage { get; set; } = total;
        public int PageIndex { get; set; } = index;
        public List<T> Data { get; set; } = data;
    }
}